.monitor-dashboard-container {
    padding: 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(90deg, var(--primary-color), #36cfc9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.refresh-info {
    color: var(--text-secondary);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.02);
    padding: 8px 16px;
    border-radius: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #36cfc9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card h3 {
    margin: 0 0 24px 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-content {
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.main-stat {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sub-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-item:hover {
    background: #e6f7ff;
    transform: translateY(-4px);
}

.trend-chart, .customer-distribution {
    height: 240px;
    margin-top: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trend-chart:hover, .customer-distribution:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

#alertPanel .alert-list {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 12px;
    margin-top: 16px;
}

.alert-item {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff1f0 0%, #fff5f5 100%);
    border: 1px solid var(--error-color);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.15);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

.alert-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(255, 77, 79, 0.2);
}

.alert-item.warning {
    background: #fffbe6;
    border-color: var(--warning-color);
    box-shadow: 0 2px 8px rgba(250, 173, 20, 0.1);
}

.alert-time {
    font-size: 13px;
    color: var(--text-secondary);
    margin-right: 12px;
    font-weight: 500;
}

.alert-message {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式布局调整 */
.compact-view .dashboard-grid {
    grid-template-columns: 1fr;
}

/* 数据统计样式优化 */
.ant-statistic-title {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.ant-statistic-content {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
}

.ant-statistic-content-value {
    color: var(--primary-color);
    background: linear-gradient(90deg, var(--primary-color), #36cfc9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 自定义滚动条样式 */
#alertPanel .alert-list::-webkit-scrollbar {
    width: 8px;
}

#alertPanel .alert-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

#alertPanel .alert-list::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

/* 图表容器样式优化 */
.trend-chart, .customer-distribution {
    position: relative;
}

.trend-chart::after, .customer-distribution::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    pointer-events: none;
}